-- import
flower = require "flower"

function printf ( ... )
	return io.stdout:write ( string.format ( ... ))
end 

-- setting
local screenWidth = MOAIEnvironment.horizontalResolution or 800
local screenHeight = MOAIEnvironment.verticalResolution or 600
local screenDpi = MOAIEnvironment.screenDpi or 120
local viewScale = math.floor(screenDpi / 240) + 1

-- open scene
flower.openWindow("Shape Mania", screenWidth, screenHeight, viewScale)
flower.openScene("main_scene")